// JavaScript Document

var timeInterval=1000;
var arr=new Array();
arr[0]="img/awed.jpg";
arr[1]="img/as.jpg";
arr[2]="img/lal.jpg";
arr[3]="img/miqil.jpg";
arr[4]="img/mmiqil.jpg";
setInterval(changeImg,timeInterval);
function changeImg()
{
    var obj=document.getElementById("obj");
    if (curIndex==arr.length-1) 
    {
        curIndex=0;
    }
    else
    {
        curIndex+=1;
    }
    obj.src=arr[curIndex];
}